package com.h2cloud.workflow;

import com.google.gson.Gson;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.extern.log4j.Log4j2;

import java.util.HashMap;
import java.util.Map;

/**
 * @author: wulongkai
 * @create: 2023-02-20 11:23
 **/
@Log4j2
public class test2 {
    public static void main(String[] args) {
        Gson gson = new Gson();
        Map<String, notify> map = new HashMap<>();
        map.put("Mail", new notify("hanchao12", "韩超"));
        for (int i = 0; i < 100000; i++) {
            String s = gson.toJson(map);
//            if (!s.equals("{\"Mail\":{\"userOa\":\"hanchao12\",\"userName\":\"韩超\"}}")) {
//                System.out.println(s);
//            }
            log.info(s);
        }
    }
}

@Data
@AllArgsConstructor
class notify {
    String userOa;
    String userName;
}